//package com.zh.web.config;
//
//import feign.form.FormEncoder;
//import feign.form.spring.SpringFormEncoder;
//import lombok.RequiredArgsConstructor;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Primary;
//import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
//
//@Configuration
//@RequiredArgsConstructor
//public class MultipartFeignConfig {
//
//   @Bean
//    public SpringFormEncoder multipartFormEncoder() {
//        return new SpringFormEncoder();
//    }
//
//    @Bean
//    @Primary
//    public FormEncoder feignFormEncoder(SpringFormEncoder springFormEncoder) {
//        return new FormEncoder(springFormEncoder);
//    }
//
//    @Bean
//    public MappingJackson2HttpMessageConverter jackson2HttpMessageConverter() {
//        return new MappingJackson2HttpMessageConverter();
//    }
//}